using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace OWED.Document
{
    class DeleteTag: ChangeAtom
    {
        public DeleteTag(AbsolutePath deletePath)
        {
            path = deletePath;
        }

        public override void Apply(XmlDocument document)
        {
            XmlNode node = path.getNode(document);
            XmlNode parent = node.ParentNode;
            parent.RemoveChild(node);
        }
    }
}
